<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Feedback extends Admin_Controller {
	
	function __construct()
	{
		parent::__construct('admin');
		$this->load->model('feedback_model', 'fb');
	}
	
	public function index()
	{
		$vData = array(
			'letters' => $this->fb->getLetters()
		);

		$vData['pages'] = setKeys($this->admin->getPages(extractFieldFromDataArray($vData['letters'], 'tPage')), 'id');
		
		$data = array(
			'content' => $this->load->view('admin/letters', $vData, true),
			'adminPage' => true
		);
		
		$this->getPage($data);
	}
}
?>